<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">

<script type="text/javascript">
	function gotoPage(){
		var page=document.getElementById("pagesize").value;
		var url="job/getJobByUser?pageNow="+page+"&pageSize="+${pageSize}+"&finds=${request.finds}";
		document.location.href=url;
	}
</script>
<div style="width:740px; height:auto;">
	<c:if test="${!empty err}">
		<font color="#FF0000">${err }</font>
	</c:if>
	<c:forEach items="${request.list}" var="job">
		<p>兼职信息ID：${job.id }</p>
		<p>标题：${job.title}</p>
		<p>内容：</p>
		<p>${job.info}</p>
		<p>图片：</p>
		<p>
			<img src="${job.images }" style="width: 200px;" />
		</p>
		<p>
			时间：
			<fmt:formatDate value="${job.date }" pattern="yyyy-MM-dd HH:mm:ss" />
		</p>
		<p>
			状态：
			<c:if test="${job.status==0}">
						未审核
					</c:if>
			<c:if test="${job.status==1}">
						审核通过
					</c:if>
			<c:if test="${job.status==2}">
						审核未通过
					</c:if>
		</p>
		<p>
			<a href="job/delJob?job.id=${job.id }" onclick="return window.confirm('确认要删除？')">删除</a>
		</p>
		<hr />
	</c:forEach>
	
	
	<div class="sui-pagination" style="text-align: center">
		<ul>
			<li class="prev "><a
				href="job/getJobByUser?pageNow=1&pageSize=${pageSize}&finds=${request.finds}">首页</a></li>
			<li class="prev "><a
				href="job/getJobByUser?pageNow=${pageNow-1}&pageSize=${pageSize}&finds=${request.finds}">«上一页</a></li>
			<li class="next"><a
				href="job/getJobByUser?pageNow=${pageNow+1}&pageSize=${pageSize}&finds=${request.finds}">下一页»</a></li>
			<li class="prev "><a
				href="job/getJobByUser?pageNow=${pageCount}&pageSize=${pageSize}&finds=${request.finds}">末页</a></li>
		</ul>
		<div>
			<span>当前页数 ${ pageNow}/共${ pageCount}页&nbsp;</span><span> 到 <input
				class="page-num" type="text" id="pagesize">
			<button class="page-confirm" onclick="gotoPage()">确定</button> 页
			</span>
		</div>
	</div>
	
	
</div>